/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.global.web;

import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import com.isd.global.modelo.ItemBanner;
import com.isd.global.rn.BannerRN;

/**
 *
 * @author ctrosch
 */
@ManagedBean
@SessionScoped
public class BannerBean {

    @EJB private BannerRN     bannerRN;

    private List<ItemBanner> banner;

    /** Creates a new instance of BannerBean */
    public BannerBean() {
        
    }

    @PostConstruct
    private void init() {

        banner = bannerRN.getLista();
    }

    public List<ItemBanner> getBanner() {
        return banner;
    }

    public void setBanner(List<ItemBanner> banner) {
        this.banner = banner;
    }
    
}
